using UnityEngine;
using System.Collections;

public class HandleGameExit : MonoBehaviour
{

	public void OnTriggerEnter(Collider col)
	{
		ThirdPersonStatus playerLink = col.GetComponent<ThirdPersonStatus>();
		//Not the player entering collider
		if(!playerLink)
		{
			return;	
		}
		else
		{
			playerLink.LevelCompleted();	
		}
	}
	
}
